<template>
  <div>
    <div>子组件 -- {{ count }}</div>
    <button @click="setCount">++++++</button>
  </div>
</template>

<script>
export default {
  props: ['count', 'addCount'],
  methods: {
    setCount() {
      this.addCount(10, () => {
        console.log('123')
      })
    }
  }
}
</script>

<style lang="scss" scoped></style>
